﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SLCustomPolicies
{
	public partial class EditPolicy : Form
	{
		public PolicyFailureType FailureType
		{
			get
			{
				return rbFailures1.Checked ? PolicyFailureType.OnePerFile : PolicyFailureType.OneTotal;
			}
			set
			{
				rbFailures1.Checked = (value == PolicyFailureType.OnePerFile);
				rbFailures2.Checked = (value == PolicyFailureType.OneTotal);
			}
		}

		public EditPolicy()
		{
			InitializeComponent();
		}
	}
}
